﻿using System;
using System.Collections.Generic;

using System.Text;

namespace Efficient.Domain
{
    public class LimitPagingInfo : PagingInfo
    {
        private int start;
        private int limit;

        public int Start
        {
            get { return start; }
            set { start = value < 0 ? 0 : value; }
        }
        
        public int Limit
        {
            get { return limit; }
            set { limit = value; }
        }

        public override int CurrentPage
        {
            get
            {
                return Start / this.PageSize;
            }
        }
    }
}
